var mongoose = require("./db");

//结业考试试卷数据表
var ExaminePaper = mongoose.model('examinepapers', {
	owner: String, //用户id
	cid: String, //课程id
	create: Date,
	score: Number, //分数（结业考试的）
	questions: [{
		Id: String, //题目id
		stuAnswer: [String], //考生的答案(客观题是选项的id数组)
		Content: String, // 题目名称,题干
		QuestionType: Number, //题目类型(1单选、2多选、3判断、4连线（匹配）、5排序)
		Tip: String, //答案解析
		QScore: Number, //题目分值(分数)
		QSerialnumber: Number, //试题序号
		QuestionOptionList: [{
			Id: String, //选项ID
			Content: String, // 选项内容
			IfRightAnswer: Boolean, //选项是否正确答案
			OrderNum: Number, //选项的序号
		}], //选项数组
	}]
});

module.exports = ExaminePaper;